home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Controls
/
Visual Basic Controls.iso
/
vbcontrol
/
em7sui_1
/
em7sui~1.exe
/
ButtonTest.wr_
/
ButtonTest.wr
Wrap
Text File
|
1998-12-18
|
2KB
|
119 lines
#VRML V2.0 utf8
# Copyright Electrohouse 1998
# This file may not be copied, modified or distributed
# in any way which violates the ProtoPak licensing
# agreement established by Electrohouse.
EXTERNPROTO BrushedMetal [ exposedField SFFloat transparency ] "..\Appearances\MetalMaterials.wrl#color34"
EXTERNPROTO Blue [ exposedField SFFloat transparency ] "..\Appearances\SummerMaterials.wrl#color19"
EXTERNPROTO em7_Button [
exposedField SFNode appearance
exposedField SFBool enabled
exposedField SFColor captionColor
field MFString caption
field SFFloat fontSize
field SFFloat width
field SFFloat height
field SFFloat depth
field SFBool toggleValue
eventIn MFString set_caption
eventOut SFBool mouseDown
eventOut SFBool mouseUp
eventOut SFBool mouseOver
eventOut SFBool toggleValue_changed
eventOut SFTime touchTime
eventOut MFString caption_changed
] "..\VR_UI.wrl#em7_Button"
EXTERNPROTO em7_ContentToggle [
exposedField MFNode children
field SFBool contentsExist
eventIn SFBool set_contentsExist
] "..\VR_UI.wrl#em7_ContentToggle"
DEF BUTTON em7_Button {
caption ["This is the", "Electrohouse", "VRML button"]
fontSize 0.4
appearance BrushedMetal {}
width 3
height 2
depth 0.2
toggleValue FALSE
}
Viewpoint {
description "Button view"
position 3 0 10
}
DEF CLICKED em7_ContentToggle {
children [
Transform {
translation 4 0 0
children [
Shape {
appearance Blue {}
geometry Text { string "Toggle is on" }
}
]
}
]
contentsExist FALSE
}
DEF UP em7_ContentToggle {
children [
Transform {
translation 4 1 0
children [
Shape {
appearance Blue {}
geometry Text { string "Button is up" }
}
]
}
]
contentsExist TRUE
}
DEF DOWN em7_ContentToggle {
children [
Transform {
translation 4 1 0
children [
Shape {
appearance Blue {}
geometry Text { string "Button is down" }
}
]
}
]
contentsExist FALSE
}
DEF OVER em7_ContentToggle {
children [
Transform {
translation 4 2 0
children [
Shape {
appearance Blue {}
geometry Text { string "Mouse is over" }
}
]
}
]
contentsExist FALSE
}
ROUTE BUTTON.toggleValue_changed TO CLICKED.set_contentsExist
ROUTE BUTTON.mouseUp TO UP.set_contentsExist
ROUTE BUTTON.mouseDown TO DOWN.set_contentsExist
ROUTE BUTTON.mouseOver TO OVER.set_contentsExist